# -*- coding: utf-8 -*-
# @Time    : 2024/12/30
# @Author  : CHNJX
# @File    : run_prod.py
# @Desc    : 生产环境启动入口

from app import create_app
import os

if __name__ == '__main__':
    # 生产环境配置
    app = create_app('production')
    
    # 生产环境配置
    port = int(os.environ.get('PORT', 5000))
    host = os.environ.get('HOST', '0.0.0.0')
    
    print(f"Starting production server on {host}:{port}")
    app.run(host=host, port=port, debug=False, threaded=True) 